import request from "@/common/request.js";

// 获取用户信息
export function getUserInfoApi(body) {
  return request({
    method: "post",
    url: "/api/user/detail",
    data: body || {},
  });
}

//授权登录
export function authLoginApi(body) {
  return request({
    method: "post",
    url: "/api/wx_account/auth",
    data: body || {},
    loadingTip: "",
  });
}

//获取用户信息注册
export function getUserInfoRegisterApi(body) {
  return request({
    method: "post",
    url: "/api/wx_account/register",
    data: body || {},
    loadingTip: "",
  });
}
//用户积分明细
export function goldListApi(body) {
  return request({
    method: "post",
    url: "/api/gold/lists",
    data: body || {},
    loadingTip: "",
  });
}

//用户信息修改
export function updateUserInfoApi(body) {
  return request({
    method: "post",
    url: "/api/user/edit",
    data: body || {},
    loadingTip: "",
  });
}

//手机号解密
export function wx_accountJMApi(body) {
  return request({
    method: "post",
    url: "/api/wx_account/xcx_info",
    data: body || {},
    loadingTip: "",
  });
}

//换取seeion_key
export function getSeeionKeyApi(body) {
  return request({
    method: "post",
    url: "/api/wx_account/user",
    data: body || {},
    loadingTip: "",
  });
}

//用户信息2
export function getUserIndexApi(body) {
  return request({
    method: "post",
    url: "/api/user/index",
    data: body || {},
  });
}


//-----新
//签到首页
export function signIndexApi(body) {
  return request({
    method: "post",
    url: "/api/sign/index",
    data: body || {},
  });
}
//签到
export function signApi(body) {
  return request({
    method: "post",
    url: "/api/sign/sign",
    data: body || {},
  });
}

//签到记录
export function signRecordApi(body) {
  return request({
    method: "post",
    url: "/api/sign/log_list",
    data: body || {},
  });
}

//签到奖品列表
export function signGoodsListApi(body) {
  return request({
    method: "post",
    url: "/api/sign/goods_list",
    data: body || {},
  });
}

//申请入驻酒厂
export function applyEnterFactoryApi(body) {
  return request({
    method: "post",
    url: "/api/jiu/apply",
    data: body || {},
    loadingTip: "",
  });
}

//申请入驻酒厂详情
export function applyEnterFactoryDetailApi(body) {
  return request({
    method: "post",
    url: "/api/jiu/detail",
    data: body || {},
  });
}


//申请入驻烟酒店
export function applyEnterYanShopApi(body) {
  return request({
    method: "post",
    url: "/api/yan/apply",
    data: body || {},
    loadingTip: "",
  });
}

//申请入驻烟酒店详情
export function applyEnterYanShopDetailApi(body) {
  return request({
    method: "post",
    url: "/api/yan/detail",
    data: body || {},
  });
}

//终端店收藏列表
export function collectYanListApi(body) {
  return request({
    method: "post",
    url: "/api/collect/yan_list",
    data: body || {},
  });
}

//酒厂收藏列表
export function collectFactoryListApi(body) {
  return request({
    method: "post",
    url: "/api/collect/jiu_list",
    data: body || {},
  });
}

//酒产品收藏列表
export function collectGoodsListApi(body) {
  return request({
    method: "post",
    url: "/api/goods/collect_list",
  });
}

//烟酒店收藏取消
export function collectYanRemoveApi(body) {
  return request({
    method: "post",
    url: "/api/collect/yan_remove",
    data: body || {},
  });
}

//酒厂收藏取消
export function collectFactoryRemoveApi(body) {
  return request({
    method: "post",
    url: "/api/collect/jiu_remove",
  });
}

//酒产品收藏取消
export function collectGoodsRemoveApi(body) {
  return request({
    method: "post",
    url: "/api/goods/collect_remove",
  });
}

//协会管理员列表
export function communityShopManageListApi(body) {
  return request({
    method: "post",
    url: "/api/community/shop_manage_list",
    data: body || {},
  });
}

//审核烟酒店列表
export function xhManageYanShopListApi(body) {
  return request({
    method: "post",
    url: "/api/xh_manage/yan_shop_list",
    data: body || {},
  });
}

//烟酒店审核
export function xhManageYanShopAuditApi(body) {
  return request({
    method: "post",
    url: "/api/xh_manage/yan_shop_audit",
    data: body || {},
  });
}

//烟酒店详情
export function xhManageYanShopDetailApi(body) {
  return request({
    method: "post",
    url: "/api/xh_manage/yan_shop_detail",
    data: body || {},
  });
}

//负责区域
export function manageAreaApi(body) {
  return request({
    method: "post",
    url: "/api/user/xh_manage",
    data: body || {},
  });
}